13874df5e87675872afbac002e7ef92ffa2cbd94,src/main/java/org/linagora/linshare/core/service/impl/MailConfigServiceImpl.java,MailConfigServiceImpl,updateLayout,#User#MailLayout#,436
Before Change
@Override
public MailLayout updateLayout(User actor, MailLayout layout)
throws BusinessException {
if (!permissionService.isAdminforThisDomain(actor, layout.getDomain()))
throw new BusinessException(BusinessErrorCode.FORBIDDEN, "Actor "
+ actor + " cannot update a mail layout in this domain "
+ actor.getDomainId());
return mailLayoutBusinessService.update(layout);
After Change
@Override
public MailLayout updateLayout(User actor, MailLayout layout)
throws BusinessException {
if (isForbidden(actor, layout.getDomain(), layout.isReadonly())) {
throw new BusinessException(BusinessErrorCode.MAILLAYOUT_FORBIDDEN, "Actor "
+ actor + " cannot update a mail layout in this domain "
+ actor.getDomainId());
}